package com.twu.biblioteca;


public class Movie {
    private String name;
    private String year;
    private String director;
    private int movie_rating;


    public Movie(String name, String year, String director, int movie_rating) {
        this.name = name;
        this.year = year;
        this.director = director;
        this.movie_rating = movie_rating;
    }

    public String getName() {
        return name;
    }

    public String getYear() {
        return year;
    }

    public String getDirector() {
        return director;
    }

    public int getMovie_rating() {
        return movie_rating;
    }

    public boolean equals(Movie movie)
    {
        if(this.name.equalsIgnoreCase(movie.name) && this.year.equalsIgnoreCase(movie.year) && this.director.equalsIgnoreCase(movie.director) && this.movie_rating==movie.movie_rating)
        {
            return true;
        }
        return false;
    }
}
